
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>分类管理</title> [#include
"/admin/common/commonurl.html"]
<style type="text/css">
.disabled{
background: #E19487 !important;
}
</style>
</head>

<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
		<script type="text/javascript">
			try {
				ace.settings.check('navbar', 'fixed')
			} catch (e) {
			}
		</script>

		[#include "/admin/common/navbar.html"]

		<!-- /.navbar-container -->
	</div>

	<div class="main-container" id="main-container">
		<script type="text/javascript">
			try {
				ace.settings.check('main-container', 'fixed')
			} catch (e) {
			}
		</script>

		<div id="sidebar" class="sidebar                  responsive">
			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'fixed')
				} catch (e) {
				}
			</script>
			[#include "/admin/common/shortcuts.html"]
			<!-- /.sidebar-shortcuts -->

			<!-- .nav-list -->
			[#include "/admin/common/commonmenu.html"]
			<ul class="nav nav-list">[@menustag id=1] [#list list as item]
				[@menu item "1,4"] [/@menu] [/#list] [/@menustag]
			</ul>
			<!-- /.nav-list -->

			<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
				<i class="ace-icon fa fa-angle-double-left"
					data-icon1="ace-icon fa fa-angle-double-left"
					data-icon2="ace-icon fa fa-angle-double-right"></i>
			</div>

			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'collapsed')
				} catch (e) {
				}

				function updatering() {
					$("#processinfos").slideDown();
					$.get("${siteurl}ring/downring.htm", function() {
						$("#processinfos").slideUp();
					});
				}
			</script>
		</div>

		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">首页</a>
					</li>

					<li class="active">分类管理</li>
				</ul>
				<!-- /.breadcrumb -->

				<div class="nav-search" id="nav-search">
					<form class="form-search">
						<span class="input-icon"> <input type="text"
							placeholder="Search ..." class="nav-search-input"
							id="nav-search-input" autocomplete="off" /> <i
							class="ace-icon fa fa-search nav-search-icon"></i>
						</span>
					</form>
				</div>
				<!-- /.nav-search -->
			</div>



			<div class="page-content">
				[#include "/admin/common/page2.html"] [#include
				"/admin/common/settings.html"]
				<form id="listForm"
					action="${siteurl}admin/organization/model_save.htm" method="post">
					<div class="row">
                        <div class="col-xs-12">
                            <ul class="breadcrumb">
                                 [#list tops as item]
								[#if item.id==id]<li>${item.name}</li>
								[#else]
								<li> <a  href="${siteurl}admin/organization/list.htm?id=${item.id}">${item.name}</a>
								[/#if] 
								</li>
			                    [/#list]
							</ul>
                        </div>
						<div class="col-xs-12">
						   
							<div class="widget-box">


								<div class="widget-body">
									<div class="widget-main">
										<div class="row">
											<div class="col-xs-12 col-sm-12 form-inline">
												
												<div class="input-group" style="width: 400px;">
                                                    <input type="hidden" value="${id!'1'}" name="parent.id"/>
													<input type="text" name="name" placeholder="分类 "
														class="form-control search-query"> <span
														class="input-group-btn">
														<button class="btn btn-purple btn-sm" type="submit">
															添加 <i
																class="ace-icon fa fa-plus icon-on-right bigger-110"></i>
														</button>
													</span>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="col-xs-12">


							<div class="table-responsive">
								<table id="listTable" class="table table-striped table-bordered table-hover">
									<tr>
										<td class="col-xs-10">分类名称</td>
										<td class="col-xs-2 text-center">操作</td>
									</tr>
									[#if list??] 
									[#list list as item]
									<tr id="trr${item.id!''}">
										<td>${item.name!""}</td>
										<td class="text-center">
											<div style="display: inline-block;">

												<a  class="btn btn-xs btn-info"
													href="${siteurl}admin/organization/view_edit.htm?id=${item.id!''}">
														<i class="icon-trash bigger-120">更新</i>
												</a> 
												<a  class="btn btn-xs btn-info"
													href="${siteurl}admin/organization/list.htm?id=${item.id!''}">
														<i class="icon-trash bigger-120">查看子分类</i>
												</a> 
												<a class="btn btn-xs btn-danger" onclick="return confirm('删除后无法恢复,确定要删除吗')"
													href="${siteurl}admin/organization/model_delete.htm?id=${item.id!''}">
														<i class="icon-trash bigger-120">删除</i>
												</a>
											</div>
										</td>
									</tr>
									[/#list]
									 [/#if]
								</table>
							</div>


						</div>
					</div>
				</form>

			</div>
		</div>
		<!-- /.main-content -->

		[#include "/admin/common/footer.html"]

	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->

	[#include "/admin/common/scripts.html"]

	<!-- inline scripts related to this page -->
</body>
</html>
